package main

import (
	"fmt"
	"runtime"
)

func main() {
	// 设置任务运行cpu核心数
	runtime.GOMAXPROCS(1)
	fmt.Println("cpu核心数: ", runtime.NumCPU())
	fmt.Println("GOROOT: ", runtime.GOROOT())
	fmt.Println("当前操作系统: ", runtime.GOOS)
	fmt.Println("goroutine个数: ", runtime.NumGoroutine())
}
